package com.ruoyi.merchant.withdrawal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.withdrawal.mapper.WithdrawalMapper;
import com.ruoyi.merchant.withdrawal.domain.Withdrawal;
import com.ruoyi.merchant.withdrawal.service.IWithdrawalService;

/**
 * 提现Service业务层处理
 * 
 * @author zx
 * @date 2025-09-14
 */
@Service
public class WithdrawalServiceImpl implements IWithdrawalService 
{
    @Autowired
    private WithdrawalMapper withdrawalMapper;

    /**
     * 查询提现
     * 
     * @param id 提现主键
     * @return 提现
     */
    @Override
    public Withdrawal selectWithdrawalById(Integer id)
    {
        return withdrawalMapper.selectWithdrawalById(id);
    }

    /**
     * 查询提现列表
     * 
     * @param withdrawal 提现
     * @return 提现
     */
    @Override
    public List<Withdrawal> selectWithdrawalList(Withdrawal withdrawal)
    {
        return withdrawalMapper.selectWithdrawalList(withdrawal);
    }

    /**
     * 新增提现
     * 
     * @param withdrawal 提现
     * @return 结果
     */
    @Override
    public int insertWithdrawal(Withdrawal withdrawal)
    {
        return withdrawalMapper.insertWithdrawal(withdrawal);
    }

    /**
     * 修改提现
     * 
     * @param withdrawal 提现
     * @return 结果
     */
    @Override
    public int updateWithdrawal(Withdrawal withdrawal)
    {
        return withdrawalMapper.updateWithdrawal(withdrawal);
    }

    /**
     * 批量删除提现
     * 
     * @param ids 需要删除的提现主键
     * @return 结果
     */
    @Override
    public int deleteWithdrawalByIds(Integer[] ids)
    {
        return withdrawalMapper.deleteWithdrawalByIds(ids);
    }

    /**
     * 删除提现信息
     * 
     * @param id 提现主键
     * @return 结果
     */
    @Override
    public int deleteWithdrawalById(Integer id)
    {
        return withdrawalMapper.deleteWithdrawalById(id);
    }
}
